package com.ken.quartz.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by renchongyu on 2018/11/24.
 */
@Controller
public class MyController {

    @RequestMapping("login")
    public @ResponseBody String hello(@RequestParam(value = "username",required = false) String username,
                                      @RequestParam(value = "password",required = false) String password){
        return "Hello "+username+", Your password is:"+password;
    }
}
